package tictactoe.clientprocessors;

import junit.framework.Assert;
import junit.framework.TestCase;
import org.junit.Before;
import org.junit.Test;
import tictactoe.Client;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: Double
 * Date: 16.01.12
 * Time: 4:51
 * To change this template use File | Settings | File Templates.
 */
public class SingleClientProcessorTest extends TestCase
{
	SingleClientProcessor scP;
	Client c = new Client();
	

	@Before
	public void setUp(){
		 scP = new SingleClientProcessor();
		c.setName("Misha");
	}
	
	
	@Test
	public void testAddClient() throws Exception
	{
		
		scP.addClient(c);
		Assert.assertEquals(1,scP.getPreAuthClient().size());

	}


	@Test
	public void testGetClients() throws Exception
	{
		if(scP.getClients() instanceof ArrayList)
		Assert.assertTrue(true);

	}

	@Test
	public void testGetClientForGame() throws Exception
	{
		Assert.assertTrue(true);

	}

	@Test
	public void testReturnClient() throws Exception
	{
		Assert.assertTrue(true);	

	}
}
